import { dataSourceType } from "@/type";


// 英文数字下划线
const enNumLine = (_rule: dataSourceType, value: string, callback: () => {}, type = 'enNum', msg = '请输入英文、数字、下划线', useValue: number = 0) => {
  if (_rule.required) {// 必填项验证非空并排除非必须项
    if (!useValue) {
      if ((value === '' || value === null || value === undefined)) {
        return Promise.reject(`访问路径不能为空!`);
      } else {
        const reg = /^[_|A-Za-z0-9]+$/;
        return reg.test(value) ? Promise.resolve() : msg ? Promise.reject(`${msg}`) : Promise.reject(`${_rule.msg}`);
      }
    } else {
      if (!value || value == undefined) {
        return Promise.reject(`${_rule.msg1}`);
      } else {
        const reg = /^[_|A-Za-z0-9]+$/;
        return reg.test(value) ? Promise.resolve() : msg ? Promise.reject(`${msg}`) : Promise.reject(`${_rule.msg}`);
      }
    }
  } else {
    if (!useValue) {
      if ((value === '' || value === null || value === undefined)) {
        return Promise.resolve();
      } else {
        const reg = /^[_|A-Za-z0-9]+$/;
        return reg.test(value) ? Promise.resolve() : msg ? Promise.reject(`${msg}`) : Promise.reject(`${_rule.msg}`);
      }
    } else {
      if (!value || value == undefined) {
        return Promise.resolve();
      } else {
        const reg = /^[_|A-Za-z0-9]+$/;
        return reg.test(value) ? Promise.resolve() : msg ? Promise.reject(`${msg}`) : Promise.reject(`${_rule.msg}`);
      }
    }
  }
}

const checkNameForm = async (_rule: dataSourceType = {}, value: any, callback: any = () => { }) => {
  console.log(_rule, value, '_rule,value');
  await function () { }()// 防止有些数据结构，比如数组的长度变化时，vue监听不到，所以添加一个空的await阻止一下下面的promise
  if (_rule.required) {

    if (value === '' || value === undefined || (_rule.type == 'Array' && !value.length)) {
      return Promise.reject(`${_rule.msg1}`);
    } else {
      return Promise.resolve()
    }
  } else {
    return Promise.resolve()
  }
};
const baseInfoJson = {
  "formListBase": [
    {
      "componentName": "parentColumn",
      "value": "",
      "placeholder": "请选择",
      "param": "parentColumn",
      rule: {
        "required": true,
        "validator": checkNameForm,
        "trigger": [
          "blur"
        ],
        "msg1": "请选择上级栏目!",
        "msg2": "名称不能重复!",
        "key": "siteDomain",
      },
      "label": "上级栏目:",
      "beforeText": "",
      "afterText": "",
      "api": "fetchOssNameUnique",
      "width": 304,
      "maxCount": 25,
      "marginLeft": 32,
      "marginTop": 0,
      "options": [
        {
          "id": "",
          "channelName": "无"
        },
        {
          "id": 7267,
          "parentId": null,
          "children": [
            {
              "id": 7268,
              "parentId": 7267,
              "children": null,
              "path": "_7267_",
              "channelName": "装机必备",
              "sortNum": 0,
              "createTime": "2023-06-29 09:45:16",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "zjbb",
              "modelId": 4702,
              "disabled": true
            },
            {
              "id": 7269,
              "parentId": 7267,
              "children": null,
              "path": "_7267_",
              "channelName": "办公必备",
              "sortNum": 1,
              "createTime": "2023-06-29 09:45:47",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "bgbb",
              "modelId": 4702,
              "disabled": true
            },
            {
              "id": 7270,
              "parentId": 7267,
              "children": null,
              "path": "_7267_",
              "channelName": "聊天社交",
              "sortNum": 2,
              "createTime": "2023-06-29 09:46:17",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "ltsj",
              "modelId": 4702,
              "disabled": true
            },
            {
              "id": 7271,
              "parentId": 7267,
              "children": null,
              "path": "_7267_",
              "channelName": "视频软件",
              "sortNum": 3,
              "createTime": "2023-06-29 09:46:32",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "sprj",
              "modelId": 4702,
              "disabled": true
            }
          ],
          "path": "_",
          "channelName": "下载",
          "sortNum": 4,
          "createTime": "2023-06-29 09:44:36",
          "recycled": false,
          "recycledPerm": false,
          "channelPath": "xz",
          "modelId": 4702,
          "disabled": true
        },
        {
          "id": 6716,
          "parentId": null,
          "children": [
            {
              "id": 6717,
              "parentId": 6716,
              "children": null,
              "path": "_6716_",
              "channelName": "党建",
              "sortNum": 8,
              "createTime": "2023-06-27 11:06:17",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "dj",
              "modelId": 4601,
              "disabled": true
            },
            {
              "id": 6718,
              "parentId": 6716,
              "children": null,
              "path": "_6716_",
              "channelName": "科技",
              "sortNum": 9,
              "createTime": "2023-06-27 11:06:58",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "kj6718",
              "modelId": 4601,
              "disabled": true
            },
            {
              "id": 6719,
              "parentId": 6716,
              "children": null,
              "path": "_6716_",
              "channelName": "汽车",
              "sortNum": 11,
              "createTime": "2023-06-27 11:07:30",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "qc6719",
              "modelId": 4601,
              "disabled": true
            },
            {
              "id": 6720,
              "parentId": 6716,
              "children": null,
              "path": "_6716_",
              "channelName": "体育",
              "sortNum": 13,
              "createTime": "2023-06-27 11:08:02",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "ty",
              "modelId": 4601,
              "disabled": true
            },
            {
              "id": 6721,
              "parentId": 6716,
              "children": null,
              "path": "_6716_",
              "channelName": "财经",
              "sortNum": 17,
              "createTime": "2023-06-27 11:08:24",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "cj",
              "modelId": 4601,
              "disabled": true
            }
          ],
          "path": "_",
          "channelName": "视频",
          "sortNum": 5,
          "createTime": "2023-06-27 11:02:50",
          "recycled": false,
          "recycledPerm": false,
          "channelPath": "sp",
          "modelId": 4601,
          "disabled": true
        },
        {
          "id": 6615,
          "parentId": null,
          "children": [
            {
              "id": 6616,
              "parentId": 6615,
              "children": null,
              "path": "_6615_",
              "channelName": "时尚",
              "sortNum": 19,
              "createTime": "2023-06-26 11:47:58",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "ss",
              "modelId": 4401,
              "disabled": true
            },
            {
              "id": 6617,
              "parentId": 6615,
              "children": null,
              "path": "_6615_",
              "channelName": "科技",
              "sortNum": 21,
              "createTime": "2023-06-26 11:48:35",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "kj",
              "modelId": 4401,
              "disabled": true
            },
            {
              "id": 6618,
              "parentId": 6615,
              "children": null,
              "path": "_6615_",
              "channelName": "汽车",
              "sortNum": 23,
              "createTime": "2023-06-26 11:48:47",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "qc",
              "modelId": 4401,
              "disabled": true
            },
            {
              "id": 6619,
              "parentId": 6615,
              "children": null,
              "path": "_6615_",
              "channelName": "明星",
              "sortNum": 25,
              "createTime": "2023-06-26 11:48:58",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "mx",
              "modelId": 4401,
              "disabled": true
            },
            {
              "id": 6715,
              "parentId": 6615,
              "children": null,
              "path": "_6615_",
              "channelName": "banner图",
              "sortNum": 27,
              "createTime": "2023-06-26 18:34:50",
              "recycled": false,
              "recycledPerm": false,
              "channelPath": "bannert",
              "modelId": 4401,
              "disabled": true
            }
          ],
          "path": "_",
          "channelName": "图片",
          "sortNum": 15,
          "createTime": "2023-06-26 11:29:44",
          "recycled": false,
          "recycledPerm": false,
          "channelPath": "pic",
          "modelId": 4401,
          "disabled": true
        }
      ],
      "type": "textInput",
      "associated": "",
      "associatedValue": "",
      "isDeleteAble": true,
      "id": "OhN3",
      "formSetting": {
        "value": "",
        "type": "parentColumnSettings",
        "id": "OhN3",
        "children": [
          {
            "value": "上级栏目",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "parentColumn",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "是",
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "keyValue",
            "isBoolean": false,
            "tips": ""
          }
        ]
      }
    },
    {
      "componentName": "columnName",
      "value": "",
      "placeholder": "请输入",
      "param": "columnName",
      rule: {
        "required": true,
        "validator": checkNameForm,
        "trigger": [
          "blur", "change"
        ],
        "msg1": "请输入栏目名称！",
        "msg2": "名称不能重复!",
        "key": "siteDomain",
      },
      "label": "栏目名称:",
      "beforeText": "",
      "afterText": "",
      "helpMsg": "",
      "api": "fetchOssNameUnique",
      "width": 492,
      "showCount": true,
      "maxCount": 100,
      "marginLeft": 32,
      "marginTop": 0,
      "type": "textInput",
      "associated": "",
      "associatedValue": "",
      "isDeleteAble": true,
      "id": "DPeF",
      "formSetting": {
        "value": "",
        "type": "columnNameSettings",
        "id": "DPeF",
        "children": [
          {
            "value": "栏目名称",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "columnName",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": true,
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "keyValue",
            "isBoolean": false,
            "tips": ""
          }
        ]
      }
    },
    {
      "componentName": "accessPath",
      "value": "",
      "placeholder": "请输入",
      "param": "accessPath",
      rule: {
        "required": true,
        "validator": enNumLine,
        "trigger": [
          "blur", "change"
        ],
        "msg1": "请输入访问路径！",
        "msg2": "访问路径不能重复!",
        "key": "siteDomain",
      },
      "label": "访问路径:",
      "beforeText": "",
      "afterText": "",
      "width": 492,
      "marginTop": 0,
      "marginLeft": 32,
      "maxCount": 25,
      "type": "textInput",
      "associated": "",
      "associatedValue": "",
      "isDeleteAble": true,
      "id": "3Jwt",
      "formSetting": {
        "value": "",
        "type": "accessPathSettings",
        "id": "3Jwt",
        "children": [
          {
            "value": "访问路径",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "accessPath",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": 304,
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": 'enNumLine',
            "placeholder": '请选择',
            "param": 'validator',
            "rule": {
              "required": false,
              //validator: checkNameForm,
              "trigger": [""],
              "message": '储存类型不能为空',
              "api": "",
              "key": 'siteDomain',
              "params": {}, //校验传参
            },
            "label": "可输入内容限制:",
            "beforeText": '',
            "afterText": '',
            "width": '',
            "marginLeft": 0,
            "type": 'multipleSelect',
            "disabled": true,
            "options": [
              { label: '只能输入英文、数字和下划线', value: 'enNumLine' },
            ],
            "mode": 'single',
            "associated": '',
            "associatedValue": '',
          },
          {
            "value": "是",
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "keyValue",
            "isBoolean": false,
            "tips": ""
          }
        ]
      }
    },
    {
      "value": false,
      "param": "showInLoop",
      "rule": {
        "required": false,
        "trigger": [
          "blur"
        ],
        validator: checkNameForm,
        "msg1": "",
        "msg2": "",
        "api": "",
        "key": "siteDomain",
        "params": {

        }
      },
      "label": "显示在前台:",
      "type": "radio",
      "marginLeft": 32,
      "isBoolean": true,
      "options": [
        {
          "label": "是",
          "value": true
        },
        {
          "label": "否",
          "value": false
        }
      ],
      "tips": "",
      "name": "显示在前台",
      "icon": "icon-cycle",
      "componentName": "showInLoop",
      "column": true,
      "uniqe": 1,
      "id": "PwOd",
      "formSetting": {
        "value": "",
        "type": "showInLoopSettings",
        "id": "PwOd",
        "children": [
          {
            "value": "显示在前台",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "outLink",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": false,
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "radio",
            "isBoolean": true,
            "options": [
              "是",
              "否"
            ],
            "tips": ""
          }
        ]
      }
    },
    {
      "placeholder": "请选择",
      "param": "tplMobile",
      "rule": {
        "required": false,
        "trigger": [
          "change"
        ],
        "validator": checkNameForm,
        "msg1": "请选择栏目手机端模板！",
        "api": "",
        "key": "siteDomain",
        "params": {

        }
      },
      "label": "栏目手机端模板:",
      "beforeText": "",
      "afterText": "",
      "marginLeft": 32,
      "type": "multipleSelect",
      "options": [

      ],
      "mode": "single",
      "associated": "",
      "associatedValue": "",
      "name": "栏目手机端模板",
      "icon": "icon-comment",
      "componentName": "tplMobile",
      "column": true,
      "uniqe": 1,
      "id": "meH4",
      "isDeleteAble": true,
      "formSetting": {
        "value": "",
        "type": "tplMobileSettings",
        "id": "meH4",
        "children": [
          {
            "value": "栏目手机端模板",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "outLink",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": false,
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "radio",
            "isBoolean": true,
            "options": [
              "是",
              "否"
            ],
            "tips": ""
          }
        ]
      }
    },
    {
      "placeholder": "请选择",
      "param": "tplPc",
      "rule": {
        "required": false,
        "trigger": [
          "change"
        ],
        "validator": checkNameForm,
        "msg1": "请选择栏目PC端模板！",
        "api": "",
        "key": "siteDomain",
        "params": {

        }
      },
      "label": "栏目PC端模板:",
      "beforeText": "",
      "afterText": "",
      "marginLeft": 32,
      "isDeleteAble": true,
      "type": "multipleSelect",
      "options": [

      ],
      "mode": "single",
      "associated": "",
      "associatedValue": "",
      "name": "栏目PC端模板",
      "icon": "icon-comment",
      "componentName": "tplPc",
      "column": true,
      "uniqe": 1,
      "id": "GpWo",
      "formSetting": {
        "value": "",
        "type": "tplPcSettings",
        "id": "GpWo",
        "children": [
          {
            "value": "栏目PC端模板",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "outLink",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": false,
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "radio",
            "isBoolean": true,
            "options": [
              "是",
              "否"
            ],
            "tips": ""
          }
        ]
      }
    },
    {
      "value": [],
      "list": [],
      "isVisible": false,
      "param": "contentModelTpls",
      "picId": "",
      "picIdPram": "",
      "rule": {
        "required": false,
        "trigger": [
          "change"
        ],
        "validator": checkNameForm,
        "msg1": "请选择内容模板！",
        "msg2": "",
        "api": "",
        "key": "siteDomain",
        "params": {

        }
      },
      "label": "内容模板",
      "beforeText": "",
      "afterText": "",
      "maxCount": 1,
      "marginLeft": 32,
      "accept": "",
      "uploadTitle": "上传附件",
      "multiple": true,
      "extra": "",
      "type": "singlePictrueUpload",
      "optionValue": "",
      "associated": "",
      "associatedValue": true,
      "listType": "text",
      "name": "内容模板",
      "icon": "icon-comment",
      "componentName": "contentModelTpls",
      "column": true,
      "isDeleteAble": true,
      "uniqe": 1,
      "id": "yxR6",
      "formSetting": {
        "value": "",
        "type": "contentModelTplsSettings",
        "id": "yxR6",
        "children": [
          {
            "value": "内容模板",
            "placeholder": "请输入",
            "param": "label",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "组件标题不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标题:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "outLink",
            "placeholder": "请输入",
            "param": "tag",
            "rule": {
              "required": true,
              "trigger": [
                "blur"
              ],
              "message": "组件标签必填!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "组件标签:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disabled": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": "",
            "placeholder": "请输入",
            "param": "helpMsg",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "1111",
              "msg2": "帮助信息不能重复!",
              "api": "fetchOssNameUnique",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "帮助信息:",
            "beforeText": "",
            "afterText": "",
            "width": "",
            "showCount": false,
            "disable": true,
            "marginLeft": 0,
            "marginTop": 0,
            "type": "textInput",
            "associated": "",
            "associatedValue": ""
          },
          {
            "value": false,
            "param": "rule",
            "rule": {
              "required": false,
              "trigger": [
                "blur"
              ],
              "msg1": "",
              "msg2": "",
              "api": "",
              "key": "siteDomain",
              "params": {

              }
            },
            "label": "是否必填:",
            "marginLeft": 0,
            "type": "radio",
            "isBoolean": true,
            "options": [
              "是",
              "否"
            ],
            "tips": ""
          }
        ]
      }
    }
  ],
  "formListExtend": [

  ],
  "formListSeo": [

  ]
}
export default { baseInfoJson }